package com.w.controller;

import com.w.utils.RandomData;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * @Description: TODO(主要用于页面跳转的)
 * @Author Administrator
 * @Date 2020/12/8 14:58
 */
@Controller
@RequestMapping("/UserJum")
public class UserJumpController {

    /**
     * 跳转到注册页面
     * */
    @RequestMapping("/registered")
    public String login(HttpServletRequest request){
        request.setAttribute("uname", RandomData.randomName(true,3));
        return "user/registered/registered";
    }
}
